package com.paradox.rpc.registry;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

public class NativeRegistry implements Registry{
    private static final Map<String,Object> enrollList=new ConcurrentHashMap<>();

    @Override
    public void register(String interfaceName, Object obj) {
        enrollList.put(interfaceName,obj);
    }

    @Override
    public Object pullService(String interfaceName) {
        return enrollList.get(interfaceName);
    }
}
